package cn.ywang.pattern.jdk;

/**
 * @author BeatificWang
 * @date 2019/3/20 23:26
 */
public class Test {
	public static void main(String[] args) {
		Issue issue = new Issue();
		issue.setTitle("页面问题");
		issue.setContent("无法登陆");
		Tester tester = new Tester("wang");
		Developer developerA = new Developer("A");
		Developer developerB = new Developer("B");
		tester.addObserver(developerA);
		tester.addObserver(developerB);
		tester.reportIssue(issue);
	}
}
